<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
header("Access-Control-Allow-Origin: *");
header("Access-Control-Expose-Headers: refresh_token,Content-Disposition");
header("Access-Control-Allow-Headers: Access-Control-Allow-Origin, session_id, Access-control-allow-headers,access-control-allow-methods,content-type,X-Powered-By,X-access-token,*");
header("Access-Control-Allow-Credentials: true");
header('Access-Control-Allow-Methods: PUT,POST,GET,DELETE,OPTIONS'); 

// ----------------------可灵视频---------------------- //
// ----------------------视频---------------------- //
Route::rule('/v1/videos/text2video','klingai/videos/text2video');

Route::rule('/v1/videos/image2video','klingai/videos/image2video');

Route::rule('/v1/videos/multi-image2video','klingai/videos/multi_image2video');

Route::rule('/v1/videos/multi-elements','klingai/videos/multi_elements');
Route::rule('/v1/videos/multi-elements/init-selection','klingai/videos/multi_elements_init_selection');
Route::rule('/v1/videos/multi-elements/add-selection','klingai/videos/multi_elements_add_selection');
Route::rule('/v1/videos/multi-elements/delete-selection','klingai/videos/multi_elements_delete_selection');
Route::rule('/v1/videos/multi-elements/clear-selection','klingai/videos/multi_elements_clear_selection');
Route::rule('/v1/videos/multi-elements/preview-selection','klingai/videos/multi_elements_preview_selection');

Route::rule('/v1/videos/video-extend','klingai/videos/video_extend');

Route::rule('/v1/videos/avatar/image2video','klingai/videos/avatar_image2video');

Route::rule('/v1/videos/advanced-lip-sync','klingai/videos/advanced_lip_sync');
Route::rule('/v1/videos/identify-face','klingai/videos/identify_face');

Route::rule('/v1/videos/effects','klingai/videos/effects');

Route::rule('/v1/videos/image-recognize','klingai/videos/image_recognize');
// ----------------------音频---------------------- //
Route::rule('/v1/audio/text-to-audio','klingai/audio/text_to_audio');
Route::rule('/v1/audio/video-to-audio','klingai/audio/video_to_audio');
Route::rule('/v1/audio/tts','klingai/audio/tts');
// ----------------------图像---------------------- //
Route::rule('/v1/images/generations','klingai/images/generations');
Route::rule('/v1/images/multi-image2image','klingai/images/multi_image2image');
Route::rule('/v1/images/editing/expand','klingai/images/editing_expand');
Route::rule('/v1/images/kolors-virtual-try-on','klingai/images/kolors_virtual_try_on');

// ----------------------快手万擎---------------------- //
Route::rule('/api/gateway/v1/endpoints/chat/completions','openapi/chat/completions');
Route::rule('/api/gateway/v1/endpoints/batch/chat/completions','openapi/chat/completions');

// ----------------------Volcengine---------------------- //
Route::rule('/api/v3/chat/completions','volcengine/chat/completions');

// ----------------------Vidu---------------------- //
Route::post('/ent/v2/text2video','vidu/ent/text2video');
Route::post('/ent/v2/img2video','vidu/ent/img2video');
Route::post('/ent/v2/reference2video','vidu/ent/reference2video');
Route::post('/ent/v2/start-end2video','vidu/ent/start_end2video');
Route::post('/ent/v2/template','vidu/ent/template');
Route::post('/ent/v2/template-story','vidu/ent/template_story');
Route::post('/ent/v2/reference2image','vidu/ent/reference2image');
Route::post('/ent/v2/text2audio','vidu/ent/text2audio');
Route::post('/ent/v2/timing2audio','vidu/ent/timing2audio');
Route::post('/ent/v2/audio-tts','vidu/ent/audio_tts');
Route::post('/ent/v2/audio-clone','vidu/ent/audio_clone');
Route::post('/ent/v2/multiframe','vidu/ent/multiframe');
Route::post('/ent/v2/extend','vidu/ent/extend');
Route::post('/ent/v2/lip-sync','vidu/ent/lip_sync');
Route::post('/ent/v2/digital-human','vidu/ent/digital_human');
Route::post('/ent/v2/replace','vidu/ent/replace');
Route::post('/ent/v2/img2video-prompt-recommendation','vidu/ent/img2video_prompt_recommendation');
Route::post('/ent/v2/upscale-new','vidu/ent/upscale_new');
Route::get('/ent/v2/tasks/:id/creations', 'vidu/ent/tasks_creations');
Route::post('/ent/v2/tasks/:id/cancel', 'vidu/ent/tasks_cancel');


return [

];
